<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>半夜书屋 - {% block title %}{% endblock %}</title>
    <link rel="stylesheet" href="{{ url_for('static', filename='css/style.css') }}">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css">
</head>
<body>
    <header>
        <div class="logo">
            <i class="fas fa-book-night"></i>
            <h1>半夜书屋</h1>
        </div>
        <nav>
            <ul>
                <li><a href="/" {% if request.path == '/' %}class="active"{% endif %}><i class="fas fa-home"></i> 首页</a></li>
                <li><a href="/bookshelf" {% if request.path == '/bookshelf' %}class="active"{% endif %}><i class="fas fa-book"></i> 书架</a></li>
                <li><a href="/profile" {% if request.path == '/profile' %}class="active"{% endif %}><i class="fas fa-user"></i> 我的</a></li>
            </ul>
        </nav>
    </header>

    <main>
        {% block content %}{% endblock %}
    </main>

    <footer>
        <p>&copy; 2025 半夜书屋 - 深夜阅读好去处</p>
        <p>当前用户: kangakng</p>
    </footer>
</body>
</html>